#ifndef DIRECTINIT_H
#define DIRECTINIT_H

#include <string>
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>
#include <xinput.h>
#include "Graphics.h"

#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"user32.lib")
#pragma comment(lib,"gdi32.lib")
#pragma comment(lib,"dxguid.lib")
#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"d3dx9.lib")
#pragma comment(lib,"dinput8.lib")
#pragma comment(lib,"xinput.lib")

class DirectInit : public Graphics
{
private:
	LPDIRECTINPUT8 dinput;
	LPDIRECTINPUTDEVICE8 dikeyboard;
	char keys[256];
public:
	DirectInit();
	~DirectInit();
	bool initialize();
	void Update();
	int Key_Down(int key);
	void Shutdown();
};

#endif